package com.lyl.appinfo.controller;

import com.lyl.appinfo.biz.BackendUserBiz;
import com.lyl.appinfo.entity.BackendUserEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class BackendUserController {
    @Autowired
    private BackendUserBiz backendUserBiz;


    @RequestMapping("/login/{usercode}/{pwd}")
    @ResponseBody
    public BackendUserEntity login(@PathVariable("usercode") String userCode, @PathVariable("pwd") String pwd) {
        System.out.println("登录......");
        return backendUserBiz.login(userCode, pwd);
    }

}
